<?php

$default_date = last_working_day(strftime('%Y-%m-%d', time()));
$date_param = get_param_value('date_param', 'overview_date_param', $default_date);
$_SESSION['overview_date_param'] = $date_param;

$action_url = elgg_get_site_url().'portfolio/overview';
echo "<form method='get' action='$action_url'>";
echo '<p><label>Date:</label><br/>'; 
echo elgg_view('input/datepicker', array(
		'name' => 'date_param',
		'value' => $date_param,
		'style' => 'width:100px',
));
echo '</p>'; 

echo elgg_view('input/submit', array(
		'name' => 'search',
		'value' => 'Search',
));

///daniel.lin 2012-8-21
/// for export to excel
echo '<br/><br/>'.elgg_view('input/submit', array(
		'name' => 'export',
		'value' => 'Export to Excel',
));

echo '</p>'; 
echo "</form>";

